﻿package mortal.game.view.wizard.panel
{
    import com.mui.controls.*;
    import mortal.common.global.*;
    import mortal.game.view.common.*;
    import mortal.game.view.skill.panel.render.*;

    public class WizardSkillItem extends SkillItem
    {
        private var _label:GTextFiled;

        public function WizardSkillItem()
        {
            return;
        }// end function

        override protected function updateView() : void
        {
            super.updateView();
            if (this._label)
            {
                this._label.width = width - _paddingLeft;
                this._label.height = height - _paddingTop;
                this._label.x = (this.width - this._label.width) / 2;
                this._label.y = (this.height - this._label.height) / 2;
            }
            return;
        }// end function

        override protected function createDisposedChildrenImpl() : void
        {
            super.createDisposedChildrenImpl();
            this._label = UIFactory.gTextField("", 0, 0, 20, 30, this, GlobalStyle.textFormatHui.center());
            this._label.borderColor = 268435455;
            this._label.multiline = true;
            this._label.wordWrap = true;
            return;
        }// end function

        override protected function disposeImpl(param1:Boolean = true) : void
        {
            super.disposeImpl(param1);
            this._label.dispose(param1);
            this._label = null;
            return;
        }// end function

        public function set label(param1:String) : void
        {
            this._label.text = param1;
            return;
        }// end function

    }
}
